/*
Copyright (C) 2022-2024 Inspur Corp.

SPDX-License-Identifier: Apache-2.0
*/
package controller

import (
	"github.com/emicklei/go-restful"
	"icep/auth"
	"icep/common/http"
)

func (ic IcepController) QueryMenuList(req *restful.Request, resp *restful.Response) {
	currentUserType := auth.GetCurrentUserType(req)
	list := ic.IcepService.QueryMenuList(currentUserType)
	http.OkWithData(resp, "查询成功", list)
}
